Programming Basics by Robert Ciesla

Programming Basics by Robert Ciesla

Author:Robert Ciesla
Language: eng
Format: epub
ISBN: 9781484272862
Publisher: Apress


In Listing 5-13, we start off by creating three different objects of locale and display some of their contents using the getDisplayName( ) method found in the Locale class.

We also summon a fourth object for examining the user’s operating system’s locale settings. First, the getDefault( ) method is used to retrieve this data and insert it into the object we named yourLocale. Then, two other methods are executed, namely, getDisplayLanguage( ) and getDisplayCountry( ), to display the information we’re interested in.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.